package com.cn.jinl.shiro;

import org.apache.log4j.Logger;
import org.apache.shiro.web.filter.authz.AuthorizationFilter;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;

public class CustomFormAuthenticationFilter extends AuthorizationFilter {

    Logger logger = Logger.getLogger(CustomFormAuthenticationFilter.class);

    @Override
    protected boolean isAccessAllowed(ServletRequest servletRequest, ServletResponse servletResponse, Object o){

        return true;
    }

    @Override
    protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws IOException {
        return true;
    }
}
